package com.xiliu.server.modules.app.vo;

import com.xiliu.server.modules.become.entity.XlBecomeItem;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author xiliu
 * @description
 * @date 2023/1/4
 */
@Data
public class BecomeVo implements Serializable{

    @NotEmpty(message="姓名不能为空")
    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "身份证号")
    private String idnum;

    @Pattern(regexp="^[1]([3-9])[0-9]{9}$",message="手机号格式错误")
    @ApiModelProperty(value = "手机号")
    private String phone;

    @NotEmpty(message="身份证照片不能为空")
    @ApiModelProperty(value = "身份证照片对象")
    private List<ImageVo> imgs;

    @ApiModelProperty(value = "身份证照片url")
    private List<String> imgUrl;

    @ApiModelProperty(value = "审核状态 1待处理 1通过 2拒绝")
    private Long state;

    /** 申请时间 */
    private String date;

    @ApiModelProperty(value = "认证级别 2房东 3房管员")
    private Long level;

    @ApiModelProperty(value = "用户id")
    private Long userid;

    @ApiModelProperty(value = "房产证信息")
    private List<XlBecomeItem> house;

    @Data
    public static class ImageVo implements Serializable{

      @ApiModelProperty(value = "图片地址")
       private String url;
    }
}
